package com.anda.enums;

/**
 * @author baisongyuan
 * @className StatusCodeEnum
 * @description
 * @date 2022/10/7 17:50
 */
public enum StatusCodeEnum {
    SUCCESS(200,"operation success");

    private final int code;
    private final String msg;

    StatusCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int code() {
        return code;
    }

    public String msg() {
        return msg;
    }
}
